package com.wondertek.poms.image.vo;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.groups.Default;

import org.hibernate.validator.constraints.Length;

import com.wondertek.poms.common.utils.validate.GroupType;

import lombok.Data;

/**
 * <p><b>PcImageSrcRulesVo Description:</b> PcImageSrcRulesVo类  对应 pc_image_src_rules-原图名称表  表</p>
 * @author 窦再兴
 * <p><b>DATE</b> 2020-10-19 09:35:09</p>
 */
 @Data
public class PcImageSrcRulesVo {
	
	/**
	 * <b>Fields</b> id : 主键ID
	 */
	@NotNull(message = "id不能为空", groups = {GroupType.Update.class})
	private Long id;
	
	/**
	 * <b>Fields</b> srcRuleName : 原图名称
	 */
	@NotBlank(message = "原图名称不能为空", groups = {Default.class})
	@Length(message = "原图名称长度不能超过32个字节", max=32, groups = {Default.class, GroupType.Update.class})
	private String srcRuleName;
	
	/**
	 * <b>Fields</b> srcRuleCode : 原图编码
	 */
	@NotBlank(message = "原图编码不能为空", groups = {Default.class})
	@Length(message = "原图编码长度不能超过32个字节", max=32, groups = {Default.class, GroupType.Update.class})
	private String srcRuleCode;
}